

<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript" src="${acePath}/assets/js/spinbox.min.js"></script>
<script type="text/javascript">
var settings = {
			modelDomainFlag:"str"
		 ,modelName:"字段信息"
		 ,modelFlag:"table/field"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/str/tableField/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	<input type="hidden" name="id" value="${data.id}">
 	<input type="hidden" required="required" name="tableId" value="${data.tableId}">
 	  <div class="form-group col-md-5">
	     <label class="required-before col-sm-3 control-label no-padding-right" for="name">字段名:</label>
	      <div class="col-sm-9 inline-height ">
			 <input type="text" oldval="${data.name}" value="${data.name}" class="validate[required,custom[validName],maxSize[50]] col-xs-10" name="name" placeholder="字段名">
		  </div> 
	</div>
 	<div class="form-group  col-md-5">
	     <label class="required-before col-sm-3 control-label no-padding-right" for="nameCn">字段中文名:</label>
	     <div class="col-sm-9 inline-height ">
	       <input type="text" oldval="${data.nameCn}" value="${data.nameCn}"  class="validate[required,maxSize[50]] col-xs-10" name="nameCn" placeholder="字段中文名">
	    </div> 
	</div> 
	  <div class="form-group col-md-5">
			<label class="required-before col-sm-3 control-label no-padding-right" for="fieldLen">字段长度:</label>
			<div class="col-sm-9 inline-height ">
		    	<input type="text" oldval="${data.fieldLen}" value="${data.fieldLen}"  name="fieldLen" class="validate[required,maxSize[50]] num col-xs-10" placeholder="" >
			</div>
		</div> 
		<div class="form-group col-md-5">
			<label class="required-before col-sm-3 control-label no-padding-right"  for="createdIndex">是否为字段建索引</label>
			<div class="col-sm-9 inline-height ">
	    		<select placeholder="是否为字段建索引" oldval="${data.createdIndex!true}" name="createdIndex" class="validate[required,maxSize[50]] col-xs-10">
					<option value="true">是</option>
					<option value="false">否</option>
				</select>
				</div> 
	    </div>
	   <div class="form-group col-md-5">
	     <label class="required-before col-sm-3 control-label no-padding-right" for="name">类型:</label>
		<div class="col-sm-9 inline-height ">
	     <select placeholder="类型" name="fieldType" oldval="${data.fieldType!'string'}" class="validate[required,maxSize[50]] col-xs-10">
			 <% for(res in ft!){ %>
			  <option value="${res.flag}">${res.flag}(${res.desc})</option>
		　　   <% } %>
		</select>
			</div> 
	  </div> 
	  <div class="form-group col-md-5">
		<label class="required-before col-sm-3 control-label no-padding-right" for="isNull">能否为空</label>
		<div class="col-sm-9 inline-height ">
	    <select placeholder="能否为空" name="isNull" oldval="${data.isNull!true}" class="validate[required,maxSize[50]] col-xs-10">
			<option value="true">是</option>
			<option value="false">否</option>
		</select>
			</div> 
	</div>
	<div class="form-group col-md-5">
		     <label class="col-sm-3 control-label no-padding-right" for="name" >序号:</label>
		    <div class="col-sm-9 inline-height ">
	     <input type="text" oldval="${data.indexNum}" value="${data.indexNum}" class="validate[custom[integer],maxSize[10]] num col-xs-10" name="indexNum" placeholder="序号">
		</div> 	
	</div> 
	  <div class="form-group col-md-5">
			<label class="col-sm-3 control-label no-padding-right" for="defaultValue">默认值:</label>
			<div class="col-sm-9 inline-height ">
		   	 <input type="text" oldval="${data.defaultValue}" value="${data.defaultValue}"  name="defaultValue" class="col-xs-10" placeholder="默认值" >
			</div>
	  </div>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"   oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	  
<%} %>
